package net.xo68.destiny.contract.domain.logger;

import lombok.Data;
import lombok.ToString;
import net.xo68.destiny.contract.domain.RespondEntity;

import java.io.Serializable;

/**
 * worker任务处理执行日志信息
 * @author wuxie
 * @version 2020-10-26
 */
@ToString
@Data
public class LoggerInfo extends RespondEntity {

    /**
     *
     */
    private static final long serialVersionUID = 1L;
    /**
     * 开始读取行数
     */
    private int beginLine;
    /**
     * 截止的读取行数
     */
    private int endLine;
    /**
     * 日志内容
     */
    private String content;
    /**
     * 是否结束
     */
    private boolean end;

    

    public LoggerInfo(int beginLine, int endLine, String content, boolean end) {
        this.beginLine = beginLine;
        this.endLine = endLine;
        this.content = content;
        this.end = end;
    }

    public LoggerInfo() {
    }
}
